home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ WMP 1.xpl < prev    next >
Text File  |  1999-07-17  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Windows Media Player"
  5. "NAME"="Window Title"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.0"
  8. "TEXT 1"="Title"
  9. "DESCRIPTION 1"="You can change the title of the WMP window here."
  10. "DESCRIPTION 2"="To have to original title again, clear the field and press "Apply"."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sPath="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\"
  17. sValue="TitleBar"
  18.  
  19. Sub Plugin_Initialize 
  20.  s=RegReadValue(sPath & sValue)
  21.  SetUIElement 1,s
  22. End Sub
  23.  
  24.  
  25. Sub Plugin_CheckData(ElementIndex)
  26. End Sub
  27.  
  28.  
  29.  
  30. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  31.  s=GetUIElement(1)
  32.  
  33.  if len(s)=0 then
  34.   'If values exists, delete it
  35.   s=RegReadValue(sPath & sValue)
  36.   if IsEmpty(s)=false then
  37.    Call RegDeleteValue(sPath & sValue)
  38.   end if
  39.  else
  40.   Call RegWriteValue(sPath & sValue,s,1)
  41.  end if
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.